--
-- Author: shunguo.chen
-- Date: 2016-08-09 13:53:57
--
-- ShareRender

local ClassRef = app.mvc.createRenderClass(...)

-- data = 
function ClassRef.create(data, node)
	local sprite = ClassRef.extend(node or cc.CSLoader:createNode(Res.FriendNode))
	if node == nil then
		ccui.Helper:doLayout(sprite)
	end
	sprite:init(data)
	return sprite
end

function ClassRef:init(data)
	self.super.init(self, data)

	self:refresh()
end

function ClassRef:refresh()
	if self._data then
		
	end
end

function ClassRef:onBtnClick(cb)
	self._onBtnClick = cb
end

return ClassRef